﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Httlgd.DataCenter.Services.Core;
using Httlgd.DataCenter.Services.Sms.DataAccess;
using Httlgd.DataCenter.Services.Sms.DataTransferObject;

namespace Httlgd.DataCenter.Services.Sms.BusinessComponent
{
    public class AttachmentBC : BusinessComponentGeneric<AttachmentDTO, AttachmentDAL>
    {
        public void UpdateAttachmentBinaryData(int attachmentID, byte[] data)
        {
            DA.UpdateAttachmentBinaryData(attachmentID, data);
        }

        public byte[] GetAttachmentBinaryData(int attachmentID, out string filename)
        {
            return DA.GetAttachmentBinaryData(attachmentID, out filename);
        }
    }
}
